<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "orderno_autogene".
 *
 * @property integer $id
 * @property string $order_date
 * @property integer $sxy_cz_max_orderno
 */
class OrdernoAutogene extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'orderno_autogene';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['order_date', 'sxy_cz_max_orderno'], 'required'],
            [['sxy_cz_max_orderno'], 'integer'],
            [['order_date'], 'string', 'max' => 8],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'order_date' => 'Order Date',
            'sxy_cz_max_orderno' => 'Sxy Cz Max Orderno',
        ];
    }
}
